﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GrassBlock : BasicBlock
{
    public float grassAlpha = 0.3f;
    public override void BlockStay(GameObject player)
    {
        base.BlockStay(player);
        Color c = player.GetComponent<SpriteRenderer>().color;
        player.GetComponent<SpriteRenderer>().color = new Color(c.r, c.g, c.b, grassAlpha);
    }
    public override void BlockOut(GameObject player)
    {
        base.BlockOut(player);
        Color c = player.GetComponent<SpriteRenderer>().color;
        player.GetComponent<SpriteRenderer>().color = new Color(c.r, c.g, c.b, 1);
    }

}
